<?php
	//require("includes/database.php");
	
	//session_start();
	if($_SESSION['username'] == "")
	{
		//removeActiveUser($_SESSION['username']);
		//removeInactiveUsers();
		header("Location: index.php");
	}else
	{
?>
<table class="session">
	<tr>
    	<td align="right">
        	<b>Usuario:</b> <?php echo $_SESSION['apellido'];?> | <a title="Salir" href="logout.php">Salir</a>
        </td>
    </tr>
</table>
<?php
		//addActiveUser($_SESSION['username'], time(),session_id());
		//removeInactiveUsers();
	}
?>